import { createRouter, createWebHistory } from 'vue-router'

const routes = [
    {
        path:"/",
        redirect:"/Hello"
    },
    {
        path:"/Hello",
        name:"hello",
        component:()=>import("@/components/HelloWorld")
    },
    {
        path:"/MyTest",
        name:"MyTest",
        component:()=>import("@/components/MyTest")
    }
]


const router = createRouter({
    routes,
    history:createWebHistory()
});

//导出路由配置
export default router
